package com.bw.zg3park2212.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import com.alibaba.android.arouter.facade.annotation.Route
import com.bw.base.mvvm.BaseViewActivity
import com.bw.zg3park2212.R
import com.bw.zg3park2212.databinding.ActivityParkvrBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView

@Route(path = "/app/ParkvrActivity")
class ParkvrActivity : BaseViewActivity<ActivityParkvrBinding>() {
    override fun intitView() {
        val options = VrPanoramaView.Options()
        options.inputType=VrPanoramaView.Options.TYPE_MONO
        binding.vr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,
            R.drawable.vrimg
        )),options)
    }

    override fun intitData() {

    }

}